import * as actionTypes from './constance'

const defaultState={
    rankList:[],
    enterloading:true
}
const reducer=(state=defaultState,action)=>{
    switch(action.type){
        case actionTypes.CHANGE_LOADING:
            return{
                ...state,
                enterloading:action.data
            }
        case actionTypes.CHANGE_RANK_LIST:
            return {
                ...state,
                rankList:action.data
            }
        default:
            return state
    }
}
export default reducer